package com.yl.order.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;

/**
 * create by cjx on 2024/6/3
 * desc:
 */
@Entity
public class ProductEntity implements Serializable {
    @Transient
    public static final long serialVersionUID = -1L;

    @Id(autoincrement = true)
    private Long id;

    private String goodsName; // 商品名称

    private String goodsNumber; // 商品编码

    private String specNumber; // 规格编码

    private String specName; // 规格名称

    @Unique
    private String productNumber; // 产品编码

    private String price; // 实际价格

    private Boolean isDefault;

    private int sort; // 产品规格排序

    @Generated(hash = 2047452720)
    public ProductEntity(Long id, String goodsName, String goodsNumber,
            String specNumber, String specName, String productNumber, String price,
            Boolean isDefault, int sort) {
        this.id = id;
        this.goodsName = goodsName;
        this.goodsNumber = goodsNumber;
        this.specNumber = specNumber;
        this.specName = specName;
        this.productNumber = productNumber;
        this.price = price;
        this.isDefault = isDefault;
        this.sort = sort;
    }

    @Generated(hash = 27353230)
    public ProductEntity() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsName() {
        return this.goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsNumber() {
        return this.goodsNumber;
    }

    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getSpecNumber() {
        return this.specNumber;
    }

    public void setSpecNumber(String specNumber) {
        this.specNumber = specNumber;
    }

    public String getSpecName() {
        return this.specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public String getProductNumber() {
        return this.productNumber;
    }

    public void setProductNumber(String productNumber) {
        this.productNumber = productNumber;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Boolean getIsDefault() {
        return this.isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }

    public int getSort() {
        return this.sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    
   
}
